package com.shop.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.shop.dao.EmpDao;
import com.shop.entity.Emp;
import com.shop.service.EmpService;
@Service
@Transactional
public class EmpServiceImpl implements EmpService {
	@Resource
	private EmpDao empDao;
	@Override
	public List<Emp> findAll() {
		return empDao.findAll();
	}
	@Override
	public String toString() {
		return "EmpServiceImpl [empDao=" + empDao + "]";
	}
	public EmpDao getEmpDao() {
		return empDao;
	}
	public void setEmpDao(EmpDao empDao) {
		this.empDao = empDao;
	}
	

}
